<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\Sight
 *
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\Sight onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\Sight withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\Sight withoutTrashed()
 * @mixin \Eloquent
 */
class Sight extends Model
{
    use SoftDeletes;
    //
    protected $table = 't_sight';

    protected $guarded = [];

    protected $dates = ['deleted_at'];

    public function user(){
        return $this->belongsTo(User::class,'id');
    }
    public function novel(){
        return $this->belongsTo(Novel::class,'id');
    }
}
